package com.han.demo2.after;

/**
 * @ClassName Square
 * @Description 正方形类
 * @Author duoduo Han
 * @Date 2024/6/2 13:53
 */
public class Square implements Quadrilateral {
    private double size;

    public double getSize() {
        return size;
    }

    public void setSize(double size) {
        this.size = size;
    }

    @Override
    public double getLength() {
        return size;
    }

    @Override
    public double getWidth() {
        return size;
    }
}
